package com.ideaaedi.zoo.example.springboot.flowable.sharding.entity.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author Administrator
 * @since 1.0.0
 */
@Getter
@Setter
@TableName("ACT_HI_IDENTITYLINK")
@Schema(name = "ActHiIdentitylinkPO", description = "历史参与者")
public class ActHiIdentitylinkPO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId("ID_")
    @Schema(description = "id")
    private String id;

    @TableField("GROUP_ID_")
    @Schema(description = "用户组ID")
    private String groupId;

    @TableField("TYPE_")
    @Schema(description = "类型", $comment = "类型：assignee、candidate、owner、starter 、participant")
    private String type;

    @TableField("USER_ID_")
    @Schema(description = "用户ID")
    private String userId;

    @TableField("TASK_ID_")
    @Schema(description = "任务ID")
    private String taskId;

    @TableField("CREATE_TIME_")
    @Schema(description = "创建时间")
    private Date createTime;

    @TableField("PROC_INST_ID_")
    @Schema(description = "流程实例ID")
    private String procInstId;

    @TableField("SCOPE_ID_")
    @Schema(description = "业务域标识")
    private String scopeId;

    @TableField("SUB_SCOPE_ID_")
    @Schema(description = "业务域子域标识")
    private String subScopeId;

    @TableField("SCOPE_TYPE_")
    @Schema(description = "业务域类型")
    private String scopeType;

    @TableField("SCOPE_DEFINITION_ID_")
    @Schema(description = "业务域关联的流程定义id")
    private String scopeDefinitionId;
    
    @Schema(description = "日期（yyyy-MM-dd）")
    @TableField("sharding_date")
    private String shardingDate;
}
